#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

#include "commrobotiq.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

public slots:
    void message( QString msg );

private slots:

    void readyReadSlot();
    void getStatus();

    void on_checkBox_toggled(bool checked);
    void on_pushButton_read_clicked();
    void on_pushButton_write_clicked();
    void on_pushButton_open_clicked();
    void on_pushButton_close_clicked();
    void on_comboBox_currentIndexChanged(const QString &arg1);

    void on_pushButton_active_clicked();

    void on_pushButton_test_clicked();

    void on_pushButton_record_clicked();

    void on_pushButton_pickup_clicked();

    void on_pushButton_stop_clicked();

    void move_to_point(int index);
    void record( short pos );
    void on_spinBox_pos_valueChanged(int arg1);

private:
    Ui::MainWindow *ui;
    QTimer timer;

    CommRobotiq crq;
    quint16 point[ 100 ];

};

#endif // MAINWINDOW_H
